package com.haha.FileCode;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class TestPath {
    public static void main(String[] args) {
        Path path = Paths.get("E:\\gulimail\\nettystudy\\to.txt");
        System.out.println(Files.exists(path));
        Path path1 = Paths.get("E:\\gulimail\\nettystudy\\haha.txt");
        try {
            //Files.createFile(path1);
            Files.delete(path1);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
